package com.zeny.edu.eduservice.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zeny.edu.eduservice.entity.EduCourse;
import com.zeny.edu.eduservice.entity.dto.CourseAllInfoDto;
import com.zeny.edu.eduservice.entity.dto.CourseAndTeacherAllInfo;
import com.zeny.edu.eduservice.entity.dto.CourseInfoForm;
import com.zeny.edu.eduservice.entity.query.CourseQuery;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author zeny
 * @since 2020-03-02
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourceInfo(CourseInfoForm courseInfoForm);

    CourseInfoForm selectCourseInfoById(String id);

    IPage<EduCourse> pageQuery(Page<EduCourse> coursePage, CourseQuery courseQuery);

    boolean deleteById(String id);

    CourseAllInfoDto getAllCourseInfoById(String courseId);

    Map<String, Object> getCourseListPage(Page<EduCourse> coursePage);

    CourseAndTeacherAllInfo getCourseAndTeacherAllInfo(String id);
}
